package ooday05;

public class Point {
    private int x;
     private int y;
     //可以只设置getter/setter来控制只读或只写

     public int getX(){ //getter
         return x;
     }
     public int getY(){
         return y;
     }
     public void setX(int x){ //setter设置
         this.x=x;
     }
     public void setY(int y){
         this.y=y;
     }
}
